package top.ysh.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.ysh.domain.Role;
import top.ysh.domain.User;

@Configuration  // 使用配置类方式，Configuration可以不用加
public class UserConfig {

    @Bean
    public User user(){
        return new User();
    }

    @Bean
    public Role role(){
        return new Role();
    }
}
